/**
 * 
 */
package edu.ucmo.cis.enrollment.service;

import edu.ucmo.cis.enrollment.dao.SystemAdminJdoDao;
import edu.ucmo.cis.enrollment.vo.SystemAdmin;

/**
 * @author Jiang
 * Email:sjiangmo@gmail.com
 */
public class SystemAdminService {
	private SystemAdminJdoDao systemAdminJdoDao;
	public SystemAdminService(){
		
	}
	public SystemAdminJdoDao getSystemAdminJdoDao() {
		return systemAdminJdoDao;
	}
	public void setSystemAdminJdoDao(SystemAdminJdoDao systemAdminJdoDao) {
		this.systemAdminJdoDao = systemAdminJdoDao;
	}
	
	public void insertSystemAdmin(String loginName, String password){
		systemAdminJdoDao.insertSystemAdmin(loginName, password);
	}
	
	public SystemAdmin searchByLoginName(String loginName){
		return systemAdminJdoDao.searchByLoginName(loginName);
	}
	
	public void changePassword(SystemAdmin systemAdmin, String password){
		systemAdminJdoDao.changePassword(systemAdmin, password);
	}
	
	public void updateEmail(SystemAdmin systemAdmin, String email){
		systemAdminJdoDao.updateEmail(systemAdmin, email);
	}

}
